import request from '@/router/axios'

export function fetchHisDrugLimitList(query) {
  return request({
    url: '/his/hisdruglimit/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugLimitObj(obj) {
  return request({
    url: '/his/hisdruglimit',
    method: 'post',
    data: obj
  })
}

export function getHisDrugLimitObj(id) {
  return request({
    url: '/his/hisdruglimit/' + id,
    method: 'get'
  })
}

export function delHisDrugLimitObj(id) {
  return request({
    url: '/his/hisdruglimit/' + id,
    method: 'delete'
  })
}

export function putHisDrugLimitObj(obj) {
  return request({
    url: '/his/hisdruglimit',
    method: 'put',
    data: obj
  })
}
